import Mock from 'mockjs';


Mock.mock(/\/edits\/submit/, 'post', (options) => {
    console.log(options)
    console.log(options.body)
    const { lang, content } = options.body;

    // 这里可以根据language和content进行相应的处理，然后返回模拟数据
    return {
      code: 0,
      msg: "提交且分析成功！",
      data: [
        {
          "directed": true,
          "label": "AST of Test1.java",
          "type": "Abstract Syntax Tree (AST)",
          "file": "Test1.java",
        
          "nodes": [
            {
              "id": 0,
              "line": 0,
              "type": "ROOT",
              "label": "Test1.java",
              "normalized": "Test1.java"
            },
            {
              "id": 1,
              "line": 1,
              "type": "CLASS",
              "label": "CLASS",
              "normalized": "CLASS"
            },
            {
              "id": 2,
              "line": 1,
              "type": "MODIFIER",
              "label": "public",
              "normalized": "public"
            },
            {
              "id": 3,
              "line": 1,
              "type": "NAME",
              "label": "Test1",
              "normalized": "Test1"
            },
            {
              "id": 4,
              "line": 4,
              "type": "METHOD",
              "label": "METHOD",
              "normalized": "METHOD"
            },
            {
              "id": 5,
              "line": 4,
              "type": "MODIFIER",
              "label": "public static",
              "normalized": "public static"
            },
            {
              "id": 6,
              "line": 4,
              "type": "RETURN",
              "label": "void",
              "normalized": "void"
            },
            {
              "id": 7,
              "line": 4,
              "type": "NAME",
              "label": "main",
              "normalized": "$METHOD_1"
            },
            {
              "id": 8,
              "line": 4,
              "type": "PARAMS",
              "label": "PARAMS",
              "normalized": "PARAMS"
            },
            {
              "id": 9,
              "line": 4,
              "type": "VAR",
              "label": "VAR",
              "normalized": "VAR"
            },
            {
              "id": 10,
              "line": 4,
              "type": "TYPE",
              "label": "String[]",
              "normalized": "String[]"
            },
            {
              "id": 11,
              "line": 4,
              "type": "NAME",
              "label": "args",
              "normalized": "$VARL_1"
            },
            {
              "id": 12,
              "line": 4,
              "type": "BLOCK",
              "label": "BLOCK",
              "normalized": "BLOCK"
            },
            {
              "id": 13,
              "line": 5,
              "type": "VAR",
              "label": "VAR",
              "normalized": "VAR"
            },
            {
              "id": 14,
              "line": 5,
              "type": "TYPE",
              "label": "int",
              "normalized": "int"
            },
            {
              "id": 15,
              "line": 5,
              "type": "NAME",
              "label": "i",
              "normalized": "$VARL_2"
            },
            {
              "id": 16,
              "line": 5,
              "type": "INIT",
              "label": "= 0",
              "normalized": "= 0"
            },
            {
              "id": 17,
              "line": 6,
              "type": "POSTFIX_UNARY_OPERATION",
              "label": "++",
              "normalized": "++"
            },
            {
              "id": 18,
              "line": 0,
              "type": "VAR",
              "label": "i",
              "normalized": "i"
            },
            {
              "id": 19,
              "line": 7,
              "type": "IF",
              "label": "IF",
              "normalized": "IF"
            },
            {
              "id": 20,
              "line": 7,
              "type": "COND",
              "label": "cond",
              "normalized": "cond"
            },
            {
              "id": 21,
              "line": 0,
              "type": "OPERATOR",
              "label": " > ",
              "normalized": " > "
            },
            {
              "id": 22,
              "line": 7,
              "type": "VAR",
              "label": "i",
              "normalized": "i"
            },
            {
              "id": 23,
              "line": 7,
              "type": "CONST",
              "label": "0",
              "normalized": "0"
            },
            {
              "id": 24,
              "line": 7,
              "type": "THEN",
              "label": "THEN",
              "normalized": "THEN"
            },
            {
              "id": 25,
              "line": 8,
              "type": "METHOD_INVOKE",
              "label": "METHOD_INVOKE",
              "normalized": "METHOD_INVOKE"
            },
            {
              "id": 26,
              "line": 8,
              "type": "METHOD_NAME",
              "label": "METHOD_NAME",
              "normalized": "METHOD_NAME"
            },
            {
              "id": 27,
              "line": 8,
              "type": "MEMBER_ACCESS",
              "label": ".",
              "normalized": "."
            },
            {
              "id": 28,
              "line": 8,
              "type": "SCOPE",
              "label": "SCOPE",
              "normalized": "SCOPE"
            },
            {
              "id": 29,
              "line": 8,
              "type": "MEMBER_ACCESS",
              "label": ".",
              "normalized": "."
            },
            {
              "id": 30,
              "line": 8,
              "type": "SCOPE",
              "label": "System",
              "normalized": "System"
            },
            {
              "id": 31,
              "line": 0,
              "type": "NAME",
              "label": "out",
              "normalized": "out"
            },
            {
              "id": 32,
              "line": 0,
              "type": "NAME",
              "label": "println",
              "normalized": "println"
            },
            {
              "id": 33,
              "line": 8,
              "type": "PARAMS",
              "label": "PARAMS",
              "normalized": "PARAMS"
            },
            {
              "id": 34,
              "line": 8,
              "type": "PARAMETERARG",
              "label": "'Positive'",
              "normalized": "'Positive'"
            },
            {
              "id": 35,
              "line": 9,
              "type": "ASSIGNMENT",
              "label": "+=",
              "normalized": "+="
            },
            {
              "id": 36,
              "line": 9,
              "type": "VAR",
              "label": "i",
              "normalized": "i"
            },
            {
              "id": 37,
              "line": 0,
              "type": "OPERATOR",
              "label": "+",
              "normalized": "+"
            },
            {
              "id": 38,
              "line": 0,
              "type": "OPERATOR",
              "label": "+",
              "normalized": "+"
            },
            {
              "id": 39,
              "line": 9,
              "type": "VAR",
              "label": "i",
              "normalized": "i"
            },
            {
              "id": 40,
              "line": 9,
              "type": "CONST",
              "label": "1",
              "normalized": "1"
            },
            {
              "id": 41,
              "line": 9,
              "type": "CONST",
              "label": "2",
              "normalized": "2"
            },
            {
              "id": 42,
              "line": 10,
              "type": "POSTFIX_UNARY_OPERATION",
              "label": "++",
              "normalized": "++"
            },
            {
              "id": 43,
              "line": 0,
              "type": "VAR",
              "label": "i",
              "normalized": "i"
            },
            {
              "id": 44,
              "line": 11,
              "type": "ELSE",
              "label": "ELSE",
              "normalized": "ELSE"
            },
            {
              "id": 45,
              "line": 12,
              "type": "METHOD_INVOKE",
              "label": "METHOD_INVOKE",
              "normalized": "METHOD_INVOKE"
            },
            {
              "id": 46,
              "line": 12,
              "type": "METHOD_NAME",
              "label": "METHOD_NAME",
              "normalized": "METHOD_NAME"
            },
            {
              "id": 47,
              "line": 12,
              "type": "MEMBER_ACCESS",
              "label": ".",
              "normalized": "."
            },
            {
              "id": 48,
              "line": 12,
              "type": "SCOPE",
              "label": "SCOPE",
              "normalized": "SCOPE"
            },
            {
              "id": 49,
              "line": 12,
              "type": "MEMBER_ACCESS",
              "label": ".",
              "normalized": "."
            },
            {
              "id": 50,
              "line": 12,
              "type": "SCOPE",
              "label": "System",
              "normalized": "System"
            },
            {
              "id": 51,
              "line": 0,
              "type": "NAME",
              "label": "out",
              "normalized": "out"
            },
            {
              "id": 52,
              "line": 0,
              "type": "NAME",
              "label": "println",
              "normalized": "println"
            },
            {
              "id": 53,
              "line": 12,
              "type": "PARAMS",
              "label": "PARAMS",
              "normalized": "PARAMS"
            },
            {
              "id": 54,
              "line": 12,
              "type": "PARAMETERARG",
              "label": "'Non-positive'",
              "normalized": "'Non-positive'"
            },
            {
              "id": 55,
              "line": 13,
              "type": "ASSIGNMENT",
              "label": "=",
              "normalized": "="
            },
            {
              "id": 56,
              "line": 13,
              "type": "VAR",
              "label": "i",
              "normalized": "i"
            },
            {
              "id": 57,
              "line": 0,
              "type": "OPERATOR",
              "label": "+",
              "normalized": "+"
            },
            {
              "id": 58,
              "line": 0,
              "type": "OPERATOR",
              "label": "-",
              "normalized": "-"
            },
            {
              "id": 59,
              "line": 13,
              "type": "VAR",
              "label": "i",
              "normalized": "i"
            },
            {
              "id": 60,
              "line": 13,
              "type": "CONST",
              "label": "1",
              "normalized": "1"
            },
            {
              "id": 61,
              "line": 13,
              "type": "VAR",
              "label": "i",
              "normalized": "i"
            },
            {
              "id": 62,
              "line": 16,
              "type": "METHOD_INVOKE",
              "label": "METHOD_INVOKE",
              "normalized": "METHOD_INVOKE"
            },
            {
              "id": 63,
              "line": 16,
              "type": "METHOD_NAME",
              "label": "METHOD_NAME",
              "normalized": "METHOD_NAME"
            },
            {
              "id": 64,
              "line": 16,
              "type": "MEMBER_ACCESS",
              "label": ".",
              "normalized": "."
            },
            {
              "id": 65,
              "line": 16,
              "type": "SCOPE",
              "label": "SCOPE",
              "normalized": "SCOPE"
            },
            {
              "id": 66,
              "line": 16,
              "type": "MEMBER_ACCESS",
              "label": ".",
              "normalized": "."
            },
            {
              "id": 67,
              "line": 16,
              "type": "SCOPE",
              "label": "System",
              "normalized": "System"
            },
            {
              "id": 68,
              "line": 0,
              "type": "NAME",
              "label": "out",
              "normalized": "out"
            },
            {
              "id": 69,
              "line": 0,
              "type": "NAME",
              "label": "println",
              "normalized": "println"
            },
            {
              "id": 70,
              "line": 16,
              "type": "PARAMS",
              "label": "PARAMS",
              "normalized": "PARAMS"
            },
            {
              "id": 71,
              "line": 16,
              "type": "PARAMETERARG",
              "label": "'End'",
              "normalized": "'End'"
            }
          ],
        
          "edges": [
            {
              "id": 0,
              "source": 0,
              "target": 1,
              "label": ""
            },
            {
              "id": 1,
              "source": 1,
              "target": 2,
              "label": ""
            },
            {
              "id": 2,
              "source": 1,
              "target": 3,
              "label": ""
            },
            {
              "id": 3,
              "source": 1,
              "target": 4,
              "label": ""
            },
            {
              "id": 4,
              "source": 4,
              "target": 5,
              "label": ""
            },
            {
              "id": 5,
              "source": 4,
              "target": 6,
              "label": ""
            },
            {
              "id": 6,
              "source": 4,
              "target": 7,
              "label": ""
            },
            {
              "id": 7,
              "source": 4,
              "target": 8,
              "label": ""
            },
            {
              "id": 8,
              "source": 8,
              "target": 9,
              "label": ""
            },
            {
              "id": 9,
              "source": 9,
              "target": 10,
              "label": ""
            },
            {
              "id": 10,
              "source": 9,
              "target": 11,
              "label": ""
            },
            {
              "id": 11,
              "source": 4,
              "target": 12,
              "label": ""
            },
            {
              "id": 12,
              "source": 12,
              "target": 13,
              "label": ""
            },
            {
              "id": 13,
              "source": 13,
              "target": 14,
              "label": ""
            },
            {
              "id": 14,
              "source": 13,
              "target": 15,
              "label": ""
            },
            {
              "id": 15,
              "source": 13,
              "target": 16,
              "label": ""
            },
            {
              "id": 16,
              "source": 12,
              "target": 17,
              "label": ""
            },
            {
              "id": 17,
              "source": 17,
              "target": 18,
              "label": ""
            },
            {
              "id": 18,
              "source": 12,
              "target": 19,
              "label": ""
            },
            {
              "id": 19,
              "source": 19,
              "target": 20,
              "label": ""
            },
            {
              "id": 20,
              "source": 20,
              "target": 21,
              "label": ""
            },
            {
              "id": 21,
              "source": 21,
              "target": 22,
              "label": ""
            },
            {
              "id": 22,
              "source": 21,
              "target": 23,
              "label": ""
            },
            {
              "id": 23,
              "source": 19,
              "target": 24,
              "label": ""
            },
            {
              "id": 24,
              "source": 24,
              "target": 25,
              "label": ""
            },
            {
              "id": 25,
              "source": 25,
              "target": 26,
              "label": ""
            },
            {
              "id": 26,
              "source": 26,
              "target": 27,
              "label": ""
            },
            {
              "id": 27,
              "source": 27,
              "target": 28,
              "label": ""
            },
            {
              "id": 28,
              "source": 28,
              "target": 29,
              "label": ""
            },
            {
              "id": 29,
              "source": 29,
              "target": 30,
              "label": ""
            },
            {
              "id": 30,
              "source": 29,
              "target": 31,
              "label": ""
            },
            {
              "id": 31,
              "source": 27,
              "target": 32,
              "label": ""
            },
            {
              "id": 32,
              "source": 25,
              "target": 33,
              "label": ""
            },
            {
              "id": 33,
              "source": 33,
              "target": 34,
              "label": ""
            },
            {
              "id": 34,
              "source": 24,
              "target": 35,
              "label": ""
            },
            {
              "id": 35,
              "source": 35,
              "target": 36,
              "label": ""
            },
            {
              "id": 36,
              "source": 35,
              "target": 37,
              "label": ""
            },
            {
              "id": 37,
              "source": 37,
              "target": 38,
              "label": ""
            },
            {
              "id": 38,
              "source": 38,
              "target": 39,
              "label": ""
            },
            {
              "id": 39,
              "source": 38,
              "target": 40,
              "label": ""
            },
            {
              "id": 40,
              "source": 37,
              "target": 41,
              "label": ""
            },
            {
              "id": 41,
              "source": 24,
              "target": 42,
              "label": ""
            },
            {
              "id": 42,
              "source": 42,
              "target": 43,
              "label": ""
            },
            {
              "id": 43,
              "source": 19,
              "target": 44,
              "label": ""
            },
            {
              "id": 44,
              "source": 44,
              "target": 45,
              "label": ""
            },
            {
              "id": 45,
              "source": 45,
              "target": 46,
              "label": ""
            },
            {
              "id": 46,
              "source": 46,
              "target": 47,
              "label": ""
            },
            {
              "id": 47,
              "source": 47,
              "target": 48,
              "label": ""
            },
            {
              "id": 48,
              "source": 48,
              "target": 49,
              "label": ""
            },
            {
              "id": 49,
              "source": 49,
              "target": 50,
              "label": ""
            },
            {
              "id": 50,
              "source": 49,
              "target": 51,
              "label": ""
            },
            {
              "id": 51,
              "source": 47,
              "target": 52,
              "label": ""
            },
            {
              "id": 52,
              "source": 45,
              "target": 53,
              "label": ""
            },
            {
              "id": 53,
              "source": 53,
              "target": 54,
              "label": ""
            },
            {
              "id": 54,
              "source": 44,
              "target": 55,
              "label": ""
            },
            {
              "id": 55,
              "source": 55,
              "target": 56,
              "label": ""
            },
            {
              "id": 56,
              "source": 55,
              "target": 57,
              "label": ""
            },
            {
              "id": 57,
              "source": 57,
              "target": 58,
              "label": ""
            },
            {
              "id": 58,
              "source": 58,
              "target": 59,
              "label": ""
            },
            {
              "id": 59,
              "source": 58,
              "target": 60,
              "label": ""
            },
            {
              "id": 60,
              "source": 57,
              "target": 61,
              "label": ""
            },
            {
              "id": 61,
              "source": 12,
              "target": 62,
              "label": ""
            },
            {
              "id": 62,
              "source": 62,
              "target": 63,
              "label": ""
            },
            {
              "id": 63,
              "source": 63,
              "target": 64,
              "label": ""
            },
            {
              "id": 64,
              "source": 64,
              "target": 65,
              "label": ""
            },
            {
              "id": 65,
              "source": 65,
              "target": 66,
              "label": ""
            },
            {
              "id": 66,
              "source": 66,
              "target": 67,
              "label": ""
            },
            {
              "id": 67,
              "source": 66,
              "target": 68,
              "label": ""
            },
            {
              "id": 68,
              "source": 64,
              "target": 69,
              "label": ""
            },
            {
              "id": 69,
              "source": 62,
              "target": 70,
              "label": ""
            },
            {
              "id": 70,
              "source": 70,
              "target": 71,
              "label": ""
            }
          ]
        },
        {
          "directed": true,
          "multigraph": true,
          "label": "CFG of Test1.java",
          "type": "Control Flow Graph (CFG)",
          "file": "Test1.java",
          "package": "",
        
          "nodes": [
            {
              "id": 0,
              "line": 4,
              "label": "void main(String[] args)"
            },
            {
              "id": 1,
              "line": 5,
              "label": "int i = 0"
            },
            {
              "id": 2,
              "line": 6,
              "label": "i++"
            },
            {
              "id": 3,
              "line": 7,
              "label": "if (i > 0)"
            },
            {
              "id": 4,
              "line": 8,
              "label": "System.out.println('Positive')"
            },
            {
              "id": 5,
              "line": 9,
              "label": "i += i + 1 + 2"
            },
            {
              "id": 6,
              "line": 10,
              "label": "i++"
            },
            {
              "id": 7,
              "line": 0,
              "label": "endif"
            },
            {
              "id": 8,
              "line": 12,
              "label": "System.out.println('Non-positive')"
            },
            {
              "id": 9,
              "line": 13,
              "label": "i = i - 1 + i"
            },
            {
              "id": 10,
              "line": 16,
              "label": "System.out.println('End')"
            }
          ],
        
          "edges": [
            {
              "id": 0,
              "source": 0,
              "target": 1,
              "label": ""
            },
            {
              "id": 1,
              "source": 1,
              "target": 2,
              "label": ""
            },
            {
              "id": 2,
              "source": 2,
              "target": 3,
              "label": ""
            },
            {
              "id": 3,
              "source": 3,
              "target": 4,
              "label": "True"
            },
            {
              "id": 4,
              "source": 4,
              "target": 5,
              "label": ""
            },
            {
              "id": 5,
              "source": 5,
              "target": 6,
              "label": ""
            },
            {
              "id": 6,
              "source": 6,
              "target": 7,
              "label": ""
            },
            {
              "id": 7,
              "source": 3,
              "target": 8,
              "label": "False"
            },
            {
              "id": 8,
              "source": 8,
              "target": 9,
              "label": ""
            },
            {
              "id": 9,
              "source": 9,
              "target": 7,
              "label": ""
            },
            {
              "id": 10,
              "source": 7,
              "target": 10,
              "label": ""
            }
          ]
        },
        {
          "directed": true,
          "label": "CDG of Test1.java",
          "type": "Control Dependence Graph (CDG)",
          "file": "Test1.java",
        
          "nodes": [
            {
              "id": 0,
              "line": 4,
              "label": "void main(String[] args)"
            },
            {
              "id": 1,
              "line": 5,
              "label": "int i = 0"
            },
            {
              "id": 2,
              "line": 6,
              "label": "i++"
            },
            {
              "id": 3,
              "line": 7,
              "label": "if (i > 0)"
            },
            {
              "id": 4,
              "line": 8,
              "label": "System.out.println('Positive')"
            },
            {
              "id": 5,
              "line": 9,
              "label": "i += i + 1 + 2"
            },
            {
              "id": 6,
              "line": 10,
              "label": "i++"
            },
            {
              "id": 7,
              "line": 0,
              "label": "ELSE"
            },
            {
              "id": 8,
              "line": 12,
              "label": "System.out.println('Non-positive')"
            },
            {
              "id": 9,
              "line": 13,
              "label": "i = i - 1 + i"
            },
            {
              "id": 10,
              "line": 16,
              "label": "System.out.println('End')"
            },
            {
              "id": 11,
              "line": 0,
              "label": "exit"
            }
          ],
        
          "edges": [
            {
              "id": 0,
              "source": 0,
              "target": 1,
              "label": ""
            },
            {
              "id": 1,
              "source": 0,
              "target": 2,
              "label": ""
            },
            {
              "id": 2,
              "source": 0,
              "target": 3,
              "label": ""
            },
            {
              "id": 3,
              "source": 3,
              "target": 4,
              "label": ""
            },
            {
              "id": 4,
              "source": 3,
              "target": 5,
              "label": ""
            },
            {
              "id": 5,
              "source": 3,
              "target": 6,
              "label": ""
            },
            {
              "id": 6,
              "source": 3,
              "target": 7,
              "label": "False"
            },
            {
              "id": 7,
              "source": 7,
              "target": 8,
              "label": ""
            },
            {
              "id": 8,
              "source": 7,
              "target": 9,
              "label": ""
            },
            {
              "id": 9,
              "source": 0,
              "target": 10,
              "label": ""
            },
            {
              "id": 10,
              "source": 0,
              "target": 11,
              "label": ""
            }
          ]
        },
        {
          "directed": true,
          "multigraph": true,
          "label": "DDG of Test1.java",
          "type": "Data Dependence Graph (DDG)",
          "file": "Test1.java",
        
          "nodes": [
            {
              "id": 0,
              "line": 4,
              "label": "void main(String[] args)",
              "defs": ["args"],
              "uses": []
            },
            {
              "id": 1,
              "line": 5,
              "label": "int i = 0",
              "defs": ["i"],
              "uses": []
            },
            {
              "id": 2,
              "line": 6,
              "label": "i++",
              "defs": ["i"],
              "uses": ["i"]
            },
            {
              "id": 3,
              "line": 7,
              "label": "if (i > 0)",
              "defs": [],
              "uses": ["i"]
            },
            {
              "id": 4,
              "line": 8,
              "label": "System.out.println('Positive')",
              "defs": [],
              "uses": []
            },
            {
              "id": 5,
              "line": 9,
              "label": "i += i + 1 + 2",
              "defs": ["i"],
              "uses": ["i"]
            },
            {
              "id": 6,
              "line": 10,
              "label": "i++",
              "defs": ["i"],
              "uses": ["i"]
            },
            {
              "id": 7,
              "line": 0,
              "label": "endif"
            },
            {
              "id": 8,
              "line": 12,
              "label": "System.out.println('Non-positive')",
              "defs": [],
              "uses": []
            },
            {
              "id": 9,
              "line": 13,
              "label": "i = i - 1 + i",
              "defs": ["i"],
              "uses": ["i"]
            },
            {
              "id": 10,
              "line": 16,
              "label": "System.out.println('End')",
              "defs": [],
              "uses": []
            }
          ],
        
          "edges": [
            {
              "id": 0,
              "source": 0,
              "target": 1,
              "type": "Control",
              "label": ""
            },
            {
              "id": 1,
              "source": 1,
              "target": 2,
              "type": "Control",
              "label": ""
            },
            {
              "id": 2,
              "source": 2,
              "target": 3,
              "type": "Control",
              "label": ""
            },
            {
              "id": 3,
              "source": 3,
              "target": 4,
              "type": "Control",
              "label": "True"
            },
            {
              "id": 4,
              "source": 4,
              "target": 5,
              "type": "Control",
              "label": ""
            },
            {
              "id": 5,
              "source": 5,
              "target": 6,
              "type": "Control",
              "label": ""
            },
            {
              "id": 6,
              "source": 6,
              "target": 7,
              "type": "Control",
              "label": ""
            },
            {
              "id": 7,
              "source": 3,
              "target": 8,
              "type": "Control",
              "label": "False"
            },
            {
              "id": 8,
              "source": 8,
              "target": 9,
              "type": "Control",
              "label": ""
            },
            {
              "id": 9,
              "source": 9,
              "target": 7,
              "type": "Control",
              "label": ""
            },
            {
              "id": 10,
              "source": 7,
              "target": 10,
              "type": "Control",
              "label": ""
            },
            {
              "id": 11,
              "source": 1,
              "target": 2,
              "type": "Flows",
              "label": "i"
            },
            {
              "id": 12,
              "source": 2,
              "target": 3,
              "type": "Flows",
              "label": "i"
            },
            {
              "id": 13,
              "source": 2,
              "target": 9,
              "type": "Flows",
              "label": "i"
            },
            {
              "id": 14,
              "source": 2,
              "target": 5,
              "type": "Flows",
              "label": "i"
            },
            {
              "id": 15,
              "source": 5,
              "target": 6,
              "type": "Flows",
              "label": "i"
            }
          ]
        }
    ]
    }
});

Mock.mock(/\/upload\/submit/, 'post', (options) => {
  console.log(options)
  console.log(options.body)

  // 这里可以根据language和content进行相应的处理，然后返回模拟数据
  return {
    code: 0,
    msg: "提交文件成功！",
    fileId: 1,
    data: options.body
  }
});


Mock.mock(/\/upload\/getResult/, 'get', (options) => {
  console.log(options)
  console.log(options.body)
  // 这里可以根据language和content进行相应的处理，然后返回模拟数据
  return {
    code: 0,
    msg: "分析完成！",
    data: {
      fileId: "1",
      state: 2
    }
  }
});